{__NOLAYOUT__}
<layout name="no_nav" />

<style type="text/css">
	#apitype {
		margin: 10px auto;
		width: 100%;
		padding: 5px;
		border-radius: 5px;
	}
</style>

<section class="pr-pay">

	<h4 class="pr-pay-title">订单已经提交成功，请尽快支付</h4>

	<article class="pr-pay-content">
		<p class="pr-pay-content-item">订单编号：{$order.order_id}</p>
		<p class="pr-pay-content-item">收货人姓名：{$order['consignee']?$order['consignee']:'暂无'}</p>
		<p class="pr-pay-content-item">手机号码：{$order['tel']?$order['tel']:'暂无'}</p>
		<p class="pr-pay-content-item">收货地址：{$order['address']?$order['address']:'暂无'}</p>
		<p class="pr-pay-content-item">金额合计：<b>￥{$order['goods_amount']+$order['shipping_fee']}</b>
		</p>
	</article>

	<article class="pr-pay-way">
		<h5 class="pr-pay-way-title">请选择支付方式</h5>

		<form method="post" action="__CONTROLLER__/toPay">

			<select id="apitype" name="apitype">
				<option value="">请选择支付方式</option>
			</select>

			<button class="btn btn-orange w100 pr-btn">立即付款</button>

			<input type="hidden" name="id" value="{$order.id}">
			<input type="hidden" name="sid" value="{$sid}">

		</form>
	</article>

</section>
<script type="text/javascript">
	$(function() {

		var payJSON = {$productPayApiJSON};
		console.log(payJSON);
		var options = [];
		$.each(payJSON, function(key, val) {
			options.push("<option value='" + key + "'>" + val + "</option>");
		});
		$("#apitype").html(options.join());
	});
</script>